package com.kaifamiao.www.demo.Do28;

public class Demo {
    public static void main(String[] args) {
        Sub sub = new Sub();
        Sup sup = new Sup();

        Sup sup1 = new Sub();
        System.out.println(sup1.a);//隐藏
        System.out.println(sup1.b);//隐藏
        sup1.instanceMethod();//重写
        sup1.staticMethod();//覆盖
        sub.show();

    }
}
